// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 线索上报  - 选题计划 提交 分页  POST */
export async function getCuesSubmitPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesSubmitData.SubmitPage[]>>('/cues/submit/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索上报  - 选题计划 提交  POST */
export async function saveCuesSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/submit/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索上报  - 选题计划 提交 详情  POST */
export async function getCuesSubmitDetails(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/submit/details', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用  POST */
export async function adoptSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/submit/adopt', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用  POST */
export async function adoptsSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/submit/adopts', {
    method: 'POST',
    data: options || {},
  });
}

/** 评分  POST */
export async function scoreSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/submit/score', {
    method: 'POST',
    data: options || {},
  });
}

/** 评分  POST */
export async function scoresSubmit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/submit/scores', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 选题线索 上报线索 组织 列表 POST */
export async function searchTreeOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesSubmitData.Organization[]>>(
    '/cues/submit/search/organization/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
